export function isURL(s) {
    return /^http[s]?:\/\/.*/.test(s)
}

export function isHttp(url) {
    return url.indexOf('http://') !== -1 || url.indexOf('https://') !== -1
}

export function isExternal(path) {
    return /^(https?:|mailto:|tel:)/.test(path)
}